package com.analysis.yejin.data;

import java.util.ArrayList;

public class CodeDataModel {
	private ArrayList<CodeHierarchy> codeList = new ArrayList<CodeHierarchy>();
	private static CodeDataModel model;
	
	public CodeDataModel(){
		this.codeList.add(new CodeHierarchy(0, "test code data 1"));
		this.codeList.add(new CodeHierarchy(1, "test code data 2"));
		this.codeList.add(new CodeHierarchy(2, "test code data 3"));
		this.codeList.add(new CodeHierarchy(3, "test code data 4"));
		this.codeList.add(new CodeHierarchy(4, "test code data 5"));
	}
	
	 public static CodeDataModel getInstance() {
		 if (model == null){
			 model = new CodeDataModel();
		 }
		 return model;
	 }

	 public ArrayList<CodeHierarchy> getCodeList() {
		 return codeList;
	 }
	
}
